package com.td.module.member.convert.appMemberUser;

import com.td.framework.common.pojo.PageResult;
import com.td.module.member.controller.admin.appMemberUser.vo.AppMemberUserCreateReqVO;
import com.td.module.member.controller.admin.appMemberUser.vo.AppMemberUserExcelVO;
import com.td.module.member.controller.admin.appMemberUser.vo.AppMemberUserRespVO;
import com.td.module.member.controller.admin.appMemberUser.vo.AppMemberUserUpdateReqVO;
import com.td.module.member.dal.dataobject.appMemberUser.AppMemberUserDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * app用户 Convert
 *
 * @author 王翔翔
 */
@Mapper
public interface AppMemberUserConvert {

    AppMemberUserConvert INSTANCE = Mappers.getMapper(AppMemberUserConvert.class);

    AppMemberUserDO convert(AppMemberUserCreateReqVO bean);

    AppMemberUserDO convert(AppMemberUserUpdateReqVO bean);

    AppMemberUserRespVO convert(AppMemberUserDO bean);

    List<AppMemberUserRespVO> convertList(List<AppMemberUserDO> list);

    PageResult<AppMemberUserRespVO> convertPage(PageResult<AppMemberUserDO> page);

    List<AppMemberUserExcelVO> convertList02(List<AppMemberUserDO> list);

}
